#include"CPolygon.h"
#include "CRectangle.h"
#include "CTriangle.h"
#include <conio.h>
int main()
{
	CRectangle rect;
	CTriangle trgl;
	CPolygon *pploy1=&rect;
	CPolygon *pploy2=&trgl;
	pploy1->setValues (4,5);
	pploy2->setValues (4,5);
	cout<<pploy1->area()<<endl;
	cout<<pploy2->area()<<endl;
	_getch();
	return 0;
}